﻿using System;

namespace Common.Reflection.Model.Attribute
{
    /// <summary>
    /// 字符串或数字长度
    /// </summary>
    [AttributeUsage(AttributeTargets.Property)]
    public class MaxLength : System.Attribute
    {
        public MaxLength(int len, string mes)
        {
            this.thelength = len;
            this.message = mes;
        }
        private int thelength;

        public int TheLength
        {
            get { return thelength; }
            set { thelength = value; }
        }

        private string message;
        public string Message
        {
            get { return message; }
            set { this.message = value; }
        }
    }
}
